<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>退货单详情</title>
    <meta name="description" content="这是一个 table 页面">
    <meta name="keywords" content="table">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="../../assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="../../assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="../../assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="../../assets/css/admin.css">
</head>
<style>
    #d{

        float: right;
        right: 100px;
    }
    [v-cloak]{
        display: none;
    }
</style>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
    以获得更好的体验！</p>
<![endif]-->
<div id="box">
<header class="am-topbar admin-header">
    <div class="am-topbar-brand">
        <strong>Amaze UI</strong> <small>后台管理模板</small>
    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;" v-cloak>
                    <span class="am-icon-users" id="adminname"></span> <span class="am-icon-caret-down"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="#" id="tuichu"><span class="am-icon-power-off" ></span> 退出</a></li>
                </ul>
            </li>
            <li><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> 开启全屏</a></li>
        </ul>
    </div>
</header>

<div class="am-cf admin-main" >

    <div class="admin-sidebar" id="daohang">
        <ul class="am-list admin-sidebar-list" id="accordion">
            <li v-if="isShow(27)"><a href="../../管理员.html"><span class="am-icon-user"></span> 管理员设置</a></li>
            <li v-if="isShow(7)"><a href="../../后台主页.html"><span class="am-icon-home"></span> 首页</a></li>
            <li class=" am-panel admin-parent" v-if="isShow(1)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-2'}">
                    <svg id="icon-goods-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M153.6 51.2h716.8c56.32 0 102.4 46.08 102.4 102.4v716.8c0 56.32-46.08 102.4-102.4 102.4H153.6c-56.32 0-102.4-46.08-102.4-102.4V153.6c0-56.32 46.08-102.4 102.4-102.4z" fill="#A1B8C2"></path><path d="M153.6 51.2h716.8c56.32 0 102.4 46.08 102.4 102.4v716.8c0 56.32-46.08 102.4-102.4 102.4H153.6c-56.32 0-102.4-46.08-102.4-102.4V153.6c0-56.32 46.08-102.4 102.4-102.4z m0 51.2c-30.72 0-51.2 20.48-51.2 51.2v716.8c0 30.72 20.48 51.2 51.2 51.2h716.8c30.72 0 51.2-20.48 51.2-51.2V153.6c0-30.72-20.48-51.2-51.2-51.2H153.6z" fill="#6D8994"></path><path d="M353.28 435.2V460.8c0 97.28 71.68 179.2 158.72 179.2s158.72-81.92 158.72-179.2v-25.6c-5.12-10.24-5.12-15.36-5.12-25.6 0-30.72 20.48-51.2 51.2-51.2s51.2 20.48 51.2 51.2-20.48 51.2-51.2 51.2c0 128-92.16 230.4-204.8 230.4s-204.8-102.4-204.8-230.4c-30.72 0-51.2-20.48-51.2-51.2s20.48-51.2 51.2-51.2 51.2 20.48 51.2 51.2c0 10.24 0 15.36-5.12 25.6z" fill="#FFFFFF"></path></svg>
                    商品<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-2">
                    <li v-if="isShow(8)"><a href="/html/wares/商品列表.html">商品列表</a></li>
                    <li v-if="isShow(9)"><a href="/html/wares/基础信息.html">基础信息</a></li>
                </ul>
            </li>
            <li class=" am-panel admin-parent" v-if="isShow(2)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-3'}">
                    <svg id="icon-sell-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M414.72 1024H153.6c-56.32 0-102.4-46.08-102.4-102.4V102.4c0-56.32 46.08-102.4 102.4-102.4h261.12c10.24 30.72 40.96 51.2 71.68 51.2s61.44-20.48 71.68-51.2H819.2c56.32 0 102.4 46.08 102.4 102.4v819.2c0 56.32-46.08 102.4-102.4 102.4h-261.12c-10.24-30.72-40.96-51.2-71.68-51.2s-61.44 20.48-71.68 51.2z" fill="#A1B8C2"></path><path d="M153.6 1024c-56.32 0-102.4-46.08-102.4-102.4V102.4c0-56.32 46.08-102.4 102.4-102.4h261.12c10.24 30.72 40.96 51.2 71.68 51.2s61.44-20.48 71.68-51.2H819.2c56.32 0 102.4 46.08 102.4 102.4v819.2c0 56.32-46.08 102.4-102.4 102.4h-261.12c-10.24-30.72-40.96-51.2-71.68-51.2s-61.44 20.48-71.68 51.2H153.6z m332.8-102.4c40.96 0 76.8 20.48 102.4 51.2H819.2c30.72 0 51.2-20.48 51.2-51.2V102.4c0-30.72-20.48-51.2-51.2-51.2h-230.4c-25.6 30.72-61.44 51.2-102.4 51.2s-76.8-20.48-102.4-51.2H153.6c-30.72 0-51.2 20.48-51.2 51.2v819.2c0 30.72 20.48 51.2 51.2 51.2h230.4c25.6-30.72 61.44-51.2 102.4-51.2zM768 51.2h51.2v51.2h-51.2V51.2z m0 870.4h51.2v51.2h-51.2v-51.2z m0-768h51.2v102.4h-51.2V153.6z m0 153.6h51.2v102.4h-51.2V307.2z m0 153.6h51.2v102.4h-51.2V460.8z m0 153.6h51.2v102.4h-51.2v-102.4z m0 153.6h51.2v102.4h-51.2v-102.4zM153.6 51.2h51.2v51.2H153.6V51.2z m0 870.4v51.2h51.2v-51.2H153.6zM153.6 153.6h51.2v102.4H153.6V153.6z m0 153.6h51.2v102.4H153.6V307.2z m0 153.6h51.2v102.4H153.6V460.8z m0 153.6h51.2v102.4H153.6v-102.4z m0 153.6h51.2v102.4H153.6v-102.4z" fill="#6D8994"></path><path d="M337.92 225.28l179.2 179.2c10.24 10.24 10.24 25.6 0 35.84-10.24 10.24-25.6 10.24-35.84 0L302.08 261.12c-10.24-10.24-10.24-25.6 0-35.84 10.24-10.24 25.6-10.24 35.84 0z" fill="#FFFFFF"></path><path d="M455.68 404.48l179.2-179.2c10.24-10.24 25.6-10.24 35.84 0 10.24 10.24 10.24 25.6 0 35.84L491.52 440.32c-10.24 10.24-25.6 10.24-35.84 0-10.24-10.24-10.24-25.6 0-35.84z" fill="#FFFFFF"></path><path d="M332.8 409.6h307.2c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-307.2c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6zM332.8 512h307.2c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-307.2c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6z" fill="#FFFFFF"></path><path d="M512 409.6v384c0 15.36-10.24 25.6-25.6 25.6s-25.6-10.24-25.6-25.6V409.6h51.2z" fill="#FFFFFF"></path></svg>
                    订单<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-3">
                    <li class=" am-panel admin-parent" v-if="isShow(10)">
                        <a class="am-cf" data-am-collapse="{parent: '#collapse-nav-3', target: '#collapse-nav-3-1'}">
                            <span>+&nbsp;&nbsp;&nbsp;</span>订单管理</a>
                        <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-3-1">
                            <li><a href="/html/order/订货单.html">订货单</a></li>
                            <li><a href="/html/order/代客下单.html">代客下单</a></li>
                        </ul>
                    </li>

                    <li class=" am-panel admin-parent" v-if="isShow(11)">
                        <a class="am-cf" data-am-collapse="{parent: '#collapse-nav-3', target: '#collapse-nav-3-3'}">
                            <span>+&nbsp;&nbsp;&nbsp;</span>退货管理</a>
                        <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-3-3">
                            <li><a href="/html/order/退货单.html">退货单</a></li>
                            <li><a href="/html/order/新增退货单.html">新增退货单</a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class=" am-panel admin-parent" v-if="isShow(3)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-4'}">
                    <svg id="icon-client-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M609.098914 322.338445l316.72223 185.160688c14.617949 9.745299 24.363248 19.490599 24.363248 34.108548V1024H73.107449V239.503401c0-14.617949 9.745299-34.108548 24.363249-43.853847L462.919424 10.488866c48.726497-24.363248 107.198293-4.87265 131.561541 43.853847 9.745299 14.617949 14.617949 29.235898 14.617949 43.853847v224.141885z" fill="#A1B8C2"></path><path d="M950.184392 975.273503h24.363249c14.617949 0 24.363248 9.745299 24.363248 24.363249s-9.745299 24.363248-24.363248 24.363248H48.744201c-14.617949 0-24.363248-9.745299-24.363249-24.363248s9.745299-24.363248 24.363249-24.363249H73.107449V239.503401c0-14.617949 9.745299-34.108548 24.363249-43.853847L462.919424 10.488866c48.726497-24.363248 107.198293-4.87265 131.561541 43.853847 9.745299 14.617949 14.617949 29.235898 14.617949 43.853847v224.141885l316.72223 185.160688c14.617949 9.745299 24.363248 19.490599 24.363248 34.108548V975.273503zM121.833946 975.273503h438.538472V98.19656c0-9.745299 0-14.617949-4.87265-24.363248-14.617949-19.490599-43.853847-29.235898-68.217096-19.490599L121.833946 239.503401V975.273503z m487.264968 0h292.358982v-428.793172l-292.358982-165.670089V975.273503z" fill="#6D8994"></path><path d="M730.915157 634.188025c14.617949 0 24.363248 9.745299 24.363248 24.363249v97.452993c0 14.617949-9.745299 24.363248-24.363248 24.363249s-24.363248-9.745299-24.363249-24.363249v-97.452993c0-14.617949 9.745299-24.363248 24.363249-24.363249zM341.103182 244.376051c14.617949 0 24.363248 9.745299 24.363248 24.363248v97.452994c0 14.617949-9.745299 24.363248-24.363248 24.363248S316.739933 380.810242 316.739933 366.192293v-97.452994c0-14.617949 9.745299-24.363248 24.363249-24.363248zM341.103182 488.008535c14.617949 0 24.363248 9.745299 24.363248 24.363248v97.452994c0 14.617949-9.745299 24.363248-24.363248 24.363248s-24.363248-9.745299-24.363249-24.363248v-97.452994c0-14.617949 9.745299-24.363248 24.363249-24.363248zM341.103182 731.641019c14.617949 0 24.363248 9.745299 24.363248 24.363248v97.452994c0 14.617949-9.745299 24.363248-24.363248 24.363248s-24.363248-9.745299-24.363249-24.363248v-97.452994c0-14.617949 9.745299-24.363248 24.363249-24.363248z" fill="#FFFFFF"></path></svg>
                    客户<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-4">
                    <li v-if="isShow(12)"><a href="/html/customer/客户列表.html">客户列表</a></li>
                    <li v-if="isShow(13)"><a href="/html/customer/客户分布.html">客户分布</a></li>
                </ul>
            </li>
            <li class=" am-panel admin-parent" v-if="isShow(4)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-5'}">
                    <svg id="icon-warehouse-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M204.8 1024H102.4c-30.72 0-51.2-20.48-51.2-51.2V486.4C51.2 215.04 256 0 512 0s460.8 215.04 460.8 486.4V972.8c0 30.72-20.48 51.2-51.2 51.2h-102.4c-30.72 0-51.2-20.48-51.2-51.2v-51.2H256v51.2c0 30.72-20.48 51.2-51.2 51.2z" fill="#A1B8C2"></path><path d="M204.8 1024H102.4c-30.72 0-51.2-20.48-51.2-51.2V486.4C51.2 215.04 256 0 512 0s460.8 215.04 460.8 486.4V972.8c0 30.72-20.48 51.2-51.2 51.2h-102.4c-30.72 0-51.2-20.48-51.2-51.2v-51.2H256v51.2c0 30.72-20.48 51.2-51.2 51.2z m0-51.2v-102.4h614.4v102.4h102.4V486.4C921.6 245.76 737.28 51.2 512 51.2S102.4 245.76 102.4 486.4V972.8h102.4z m25.6-204.8h563.2c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-563.2c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6z" fill="#6D8994"></path><path d="M230.4 665.6h563.2c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-563.2c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6zM230.4 563.2h563.2c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-563.2c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6z" fill="#6D8994"></path><path d="M230.4 358.4h204.8c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-204.8c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6zM588.8 358.4h204.8c15.36 0 25.6 10.24 25.6 25.6s-10.24 25.6-25.6 25.6h-204.8c-15.36 0-25.6-10.24-25.6-25.6s10.24-25.6 25.6-25.6z" fill="#FFFFFF"></path></svg>
                    仓库<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-5">
                    <li v-if="isShow(14)"><a href="/html/warehouse/商品出库.html">商品出库</a></li>
                    <li v-if="isShow(15)"><a href="/html/warehouse/商品入库.html">商品入库</a></li>
                    <li v-if="isShow(16)"><a href="/html/warehouse/商品库存.html">商品库存</a></li>
                    <li v-if="isShow(17)"><a href="/html/warehouse/库存调拨.html">库存调拨</a></li>
                    <li v-if="isShow(18)"><a href="/html/warehouse/出入库明细.html">出入库明细</a></li>
                </ul>
            </li>
            <li class=" am-panel admin-parent" v-if="isShow(5)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-6'}">
                    <svg id="icon-purchase-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M61.44 307.2h906.24c30.72 0 51.2 20.48 51.2 51.2v10.24l-81.92 522.24c-10.24 51.2-51.2 87.04-102.4 87.04H189.44c-51.2 0-92.16-35.84-102.4-87.04L10.24 368.64C5.12 337.92 25.6 312.32 51.2 307.2h10.24z" fill="#A1B8C2"></path><path d="M61.44 307.2h906.24c30.72 0 51.2 20.48 51.2 51.2v10.24l-81.92 522.24c-10.24 51.2-51.2 87.04-102.4 87.04H189.44c-51.2 0-92.16-35.84-102.4-87.04L10.24 368.64C5.12 337.92 25.6 312.32 51.2 307.2h10.24z m0 51.2l81.92 522.24c5.12 25.6 25.6 40.96 51.2 40.96h645.12c25.6 0 46.08-20.48 51.2-40.96L962.56 358.4H61.44z" fill="#6D8994"></path><path d="M481.28 512v286.72c0 15.36 10.24 25.6 25.6 25.6s25.6-10.24 25.6-25.6V512c0-15.36-10.24-25.6-25.6-25.6s-25.6 10.24-25.6 25.6zM230.4 517.12l30.72 286.72c0 15.36 15.36 25.6 25.6 20.48 15.36 0 25.6-15.36 20.48-25.6l-25.6-291.84c0-15.36-15.36-25.6-25.6-20.48-15.36 0-25.6 15.36-25.6 30.72zM783.36 517.12l-30.72 286.72c0 15.36-15.36 25.6-25.6 20.48-15.36 0-25.6-15.36-20.48-25.6l30.72-286.72c0-15.36 15.36-25.6 25.6-20.48 10.24-5.12 20.48 10.24 20.48 25.6z" fill="#FFFFFF"></path><path d="M358.4 102.4h307.2c20.48 0 35.84 10.24 46.08 30.72L819.2 358.4H204.8l107.52-225.28c10.24-20.48 25.6-30.72 46.08-30.72z m307.2 51.2H358.4L286.72 307.2h450.56L665.6 153.6z" fill="#6D8994"></path></svg>                    采购<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-6">
                    <li v-if="isShow(19)"><a href="/html/purchase/采购订单.html">采购订单</a></li>
                    <li v-if="isShow(20)"><a href="/html/purchase/采购退货.html">采购退货</a></li>
                    <li v-if="isShow(21)"><a href="/html/purchase/供应商管理.html">供应商管理</a></li>
                </ul>
            </li>
            <li class=" am-panel admin-parent" v-if="isShow(6)">
                <a class="am-cf" data-am-collapse="{parent: '#accordion', target: '#collapse-nav-7'}">
                    <svg id="icon-finance-20ade5-n" viewBox="0 0 1024 1024" width="15px" height="15px"><path d="M409.827028 204.345943L307.654057 102.172972c0-56.195134 45.977837-102.172972 102.172971-102.172972s102.172972 45.977837 102.172972 102.172972c0-56.195134 45.977837-102.172972 102.172972-102.172972s102.172972 45.977837 102.172971 102.172972l-102.172971 102.172971s357.605401 229.889186 357.6054 505.75621-408.691887 311.627564-408.691886 311.627564c-61.303783 5.108649-137.933512 0-137.933512 0S52.221628 1011.512419 52.221628 704.993504 409.827028 204.345943 409.827028 204.345943z" fill="#A1B8C2"></path><path d="M563.086486 204.345943c0-15.325946 5.108649-25.543243 15.325946-35.76054l81.738377-81.738377c-5.108649-20.434594-25.543243-35.76054-45.977837-35.76054-30.651891 0-51.086486 20.434594-51.086486 51.086486 0 66.412432-102.172972 66.412432-102.172972 0 0-30.651891-20.434594-51.086486-51.086486-51.086486-20.434594 0-40.869189 15.325946-45.977837 30.651891l81.738377 81.738378c10.217297 15.325946 15.325946 25.543243 15.325946 40.869188h102.172972z m35.76054 51.086486H425.152974h-5.108648c-10.217297 10.217297-25.543243 15.325946-35.760541 25.543243-40.869189 25.543243-81.738377 61.303783-117.498917 91.955675-102.172972 102.172972-163.476755 214.56324-163.476755 332.062157 0 112.390269 56.195134 183.911349 158.368106 224.780538 35.76054 15.325946 76.629729 25.543243 117.498918 30.651892 25.543243 5.108649 40.869189 5.108649 56.195134 5.108648H578.412432c10.217297 0 25.543243-5.108649 40.869188-5.108648 45.977837-10.217297 86.847026-20.434594 132.824863-40.869189 112.390269-45.977837 173.694052-117.498917 173.694052-209.454592 0-102.172972-61.303783-214.56324-163.476754-321.844861-35.76054-40.869189-76.629729-71.52108-117.498918-102.172971-20.434594-10.217297-30.651891-20.434594-45.977837-30.651892zM409.827028 204.345943L307.654057 102.172972c0-56.195134 45.977837-102.172972 102.172971-102.172972s102.172972 45.977837 102.172972 102.172972c0-56.195134 45.977837-102.172972 102.172972-102.172972s102.172972 45.977837 102.172971 102.172972l-102.172971 102.172971s357.605401 229.889186 357.6054 505.75621-408.691887 311.627564-408.691886 311.627564c-61.303783 5.108649-137.933512 0-137.933512 0S52.221628 1011.512419 52.221628 704.993504 409.827028 204.345943 409.827028 204.345943z" fill="#6D8994"></path><path d="M501.782703 561.951344h137.933512c15.325946 0 25.543243 10.217297 25.543242 25.543243s-10.217297 25.543243-25.543242 25.543243H512v51.086486h127.716215c15.325946 0 25.543243 10.217297 25.543242 25.543243s-10.217297 25.543243-25.543242 25.543243H512v127.716214c0 15.325946-10.217297 25.543243-25.543243 25.543243s-25.543243-10.217297-25.543243-25.543243V715.210802H333.1973c-15.325946 0-25.543243-10.217297-25.543243-25.543243s10.217297-25.543243 25.543243-25.543243H460.913514v-51.086486H333.1973c-15.325946 0-25.543243-10.217297-25.543243-25.543243s10.217297-25.543243 25.543243-25.543243h137.933511l-102.172971-107.28162c-10.217297-10.217297-10.217297-30.651891-5.108649-40.869189s25.543243-10.217297 35.76054 0l86.847026 91.955675 86.847026-91.955675c10.217297-5.108649 25.543243-5.108649 35.76054 0 5.108649 10.217297 5.108649 30.651891 0 40.869189L501.782703 561.951344z" fill="#FFFFFF"></path></svg>
                    财务<span class="am-icon-angle-right am-fr am-margin-right"></span>
                </a>

                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav-7">
                    <li v-if="isShow(22)"><a href="/html/finance/收款单.html">收款单</a></li>
                    <li v-if="isShow(23)"><a href="/html/finance/付款单.html">付款单</a></li>
                    <li v-if="isShow(24)"><a href="/html/finance/收支流水.html">收支流水</a></li>
                    <li v-if="isShow(25)"><a href="/html/finance/客户对账.html">客户对账</a></li>
                    <li v-if="isShow(26)"><a href="/html/finance/资金账户.html">资金账户</a></li>
                </ul>
            </li>

        </ul>

        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div>
                <p><span class="am-icon-bookmark"></span> 公告</p>
                <p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>
            </div>
        </div>

        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div>
                <p><span class="am-icon-tag"></span> wiki</p>
                <p>Welcome to the Amaze UI wiki!</p>
            </div>
        </div>
    </div>

    <div class="admin-content">

        <div class="am-tabs-bd">
            <div class="col-md-10 am-cf am-padding">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单</strong> / <small>退货单</small> /<small>退货单详情</small></div>
            </div>
        </div>
        <div class="am-tabs am-margin" data-am-tabs="">
            <h1 style="text-align: center;color:red" v-show="buyReturn.orderSta == 14">已作废</h1>
            <ul class="am-tabs-nav am-nav am-nav-tabs">
                <li id="x" :class="{'am-active': buyReturn.orderSta == 9 || buyReturn.orderSta == 1 ||  buyReturn.orderSta == 14}" ><a href="#tab1">退货单详情</a></li>
                <li :class="{'am-active': buyReturn.orderSta == 5}"><a v-show="buyReturn.orderSta != 9 && buyReturn.orderSta != 1"  href="#tab2">入库情况</a></li>
                <li :class="{'am-active':buyReturn.orderSta==10 || buyReturn.orderSta==15}"><a v-show="buyReturn.orderSta != 5 && buyReturn.orderSta != 9 && buyReturn.orderSta != 1" href="#tab3">退款情况</a></li>
            </ul>

            <div class="am-g">
                <div class="col-md-6 am-padding" >
                    <span class="col-md-1"><svg t="1576155010962" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16506" width="30" height="30"><path d="M218.2 997c-3.7 0-6.8-0.1-9.8-0.4-38.9-2.2-75.3-17.3-103.8-43.8-34.6-30.9-53.9-76.1-53.9-126.9V167.2C50.7 92 102.7 24 174.3 5.5 195.7 0.1 215.9 0.1 235.4 0.1L791 0c22.2 0 47.3 0 72.2 9.7 37.2 14.3 67.2 39 86.3 71.4 15.5 26.5 23.7 56.2 23.7 86.1v401.7c0 17.2-13.9 31.2-31.2 31.2s-31.2-13.9-31.2-31.2V167.2c0-18.7-5.2-37.6-15.2-54.5-11.9-20.1-30.9-35.7-55.1-44.9-14.1-5.5-31.4-5.5-49.7-5.5H235.5c-17.9 0.1-32.4 0.2-45.7 3.6-44.4 11.4-76.7 54-76.7 101.3V826c0 32.8 11.9 61.5 33.4 80.7 18.3 16.9 41.2 26.3 66.9 27.8 3.8 0.4 6.5 0.1 8.9 0.1l8.3-0.1h244.8c17.2 0 31.2 13.9 31.2 31.2s-13.9 31.2-31.2 31.2H230.5c-4.9 0-8.9 0.1-12.3 0.1z" id="x1"  p-id="16507"></path><path d="M683.4 1024c-15.7 0-31-5.9-43.1-16.6L553 928.8c-12.7-11.6-13.7-31.3-2.1-44s31.3-13.6 44-2.1l86.9 78.3 223.6-233.3c11.9-12.4 31.8-12.7 44.1-0.7 12.4 12 12.7 31.7 0.7 44.1l-219.5 230.8c-15.3 15.6-30.7 22.1-47.3 22.1zM287.8 696c-16.9 0-31.1 14.3-31.1 31.2 0.7 17.1 14.6 31.2 31.1 31.2h166.5c16.9 0 31.2-14.3 31.2-31.2S471.2 696 454.3 696H287.8zM287.8 461.3c-16.9 0-31.2 14.3-31.2 31.2 0.7 17.1 14.6 31.2 31.2 31.2h416.9c16.9 0 31.2-14.3 31.2-31.2s-14.3-31.2-31.2-31.2H287.8zM287.8 226.6c-16.9 0-31.2 14.3-31.2 31.2 0.7 17.1 14.6 31.2 31.2 31.2h416.9c16.9 0 31.2-14.3 31.2-31.2s-14.3-31.2-31.2-31.2H287.8z"  id="x2" p-id="16508"></path></svg>提交</span>
                    <span class="col-md-1"><svg t="1576139644013" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7154" width="30" height="30"><path d="M1024.512 498.688c0-1.536 0-3.072-0.512-5.12-1.024-6.144-4.608-11.776-9.216-15.36l-258.048-258.048c-10.24-10.24-26.112-10.24-36.352 0s-10.24 26.112 0 36.352l216.576 216.576h-912.384c-13.312 0-24.576 11.264-24.576 25.6s10.752 25.6 24.576 25.6h912.384l-216.576 216.576c-10.24 10.24-10.24 26.112 0 36.352 5.12 5.12 11.776 7.68 17.92 7.68s13.312-2.56 17.92-7.68L1014.272 519.168c4.608-3.584 8.192-9.216 9.216-15.36 1.024-2.048 1.024-3.584 1.024-5.12z" p-id="7155"  id="x3"></path></svg></span>
                    <span class="col-md-1"><svg t="1576155073350" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17299" width="30" height="30"><path d="M639.531236 1019.430684l245.896533-248.153884-245.896533 0.291271L639.531236 1019.430684zM639.531236 1019.430684" p-id="17300" id="x5" ></path><path d="M750.733084 0 164.923164 0 23.274382 0l0 215.076409 0 804.37248 141.648782 0 409.172196 0L574.09536 706.277831l176.637724 0 141.648782 0 0-50.54464L892.381867 509.515093l0-70.61504L892.381867 292.026596l0-76.950187L892.381867 0 750.733084 0 750.733084 0zM164.923164 729.160818l0-73.436729 227.956053 0 0 73.436729L164.923164 729.160818 164.923164 729.160818zM750.733084 509.515093 164.923164 509.515093l0-70.61504 585.80992 0L750.733084 509.515093 750.733084 509.515093zM750.733084 292.026596 164.923164 292.026596l0-76.950187 585.80992 0L750.733084 292.026596 750.733084 292.026596zM750.733084 292.026596" p-id="17301"  id="x4"></path></svg>退货审核</span>
                    <span class="col-md-1"><svg t="1576139644013" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7154" width="30" height="30"><path d="M1024.512 498.688c0-1.536 0-3.072-0.512-5.12-1.024-6.144-4.608-11.776-9.216-15.36l-258.048-258.048c-10.24-10.24-26.112-10.24-36.352 0s-10.24 26.112 0 36.352l216.576 216.576h-912.384c-13.312 0-24.576 11.264-24.576 25.6s10.752 25.6 24.576 25.6h912.384l-216.576 216.576c-10.24 10.24-10.24 26.112 0 36.352 5.12 5.12 11.776 7.68 17.92 7.68s13.312-2.56 17.92-7.68L1014.272 519.168c4.608-3.584 8.192-9.216 9.216-15.36 1.024-2.048 1.024-3.584 1.024-5.12z" p-id="7155" id="x6"></path></svg></span>


                    <span class="col-md-1"><svg t="1576155272366" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19080" width="30" height="30"><path d="M514.332444 719.530667l-139.377777-139.377778a50.403556 50.403556 0 0 0-47.047111-15.246222c-14.336 3.754667-20.992 15.246222-24.803556 28.16-3.811556 12.970667 3.811556 36.181333 17.351111 47.786666l74.808889 70.428445H104.277333c-16.896 0-32.597333 5.916444-41.016889 20.536889a47.388444 47.388444 0 0 0 0 47.445333c8.419556 14.620444 24.120889 19.342222 41.016889 19.342222h290.986667l-74.808889 72.590222c-12.003556 11.946667-21.845333 33.336889-17.351111 47.786667 4.551111 14.506667 13.425778 21.048889 25.998222 24.519111 12.572444 3.413333 33.848889-0.170667 45.852445-12.117333l142.222222-142.222222a47.331556 47.331556 0 0 0 13.312-40.334223 47.274667 47.274667 0 0 0-16.156445-29.297777z" id="x8" p-id="19081"></path><path d="M718.620444 944.753778a47.388444 47.388444 0 0 1-41.016888-23.722667c-8.533333-14.620444-8.533333-25.088 0-39.765333a47.388444 47.388444 0 0 1 41.016888-23.665778h150.072889l-3.015111-495.274667L512 152.405333 143.132444 362.382222v116.053334c0 26.168889-17.066667 45.226667-43.235555 45.226666C73.614222 523.605333 56.888889 504.604444 56.888889 478.435556v-142.222223c0-16.327111 8.362667-31.573333 22.243555-40.277333l407.665778-233.244444a47.388444 47.388444 0 0 1 50.289778 0l393.216 233.244444c13.880889 8.704 22.357333 23.893333 22.300444 40.334222l3.015112 561.095111c0 26.168889-21.219556 47.388444-47.445334 47.388445h-189.610666z" id="x9" p-id="19082"></path></svg>入库</span>
                    <span class="col-md-1"><svg t="1576139644013" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7154" width="30" height="30"><path d="M1024.512 498.688c0-1.536 0-3.072-0.512-5.12-1.024-6.144-4.608-11.776-9.216-15.36l-258.048-258.048c-10.24-10.24-26.112-10.24-36.352 0s-10.24 26.112 0 36.352l216.576 216.576h-912.384c-13.312 0-24.576 11.264-24.576 25.6s10.752 25.6 24.576 25.6h912.384l-216.576 216.576c-10.24 10.24-10.24 26.112 0 36.352 5.12 5.12 11.776 7.68 17.92 7.68s13.312-2.56 17.92-7.68L1014.272 519.168c4.608-3.584 8.192-9.216 9.216-15.36 1.024-2.048 1.024-3.584 1.024-5.12z" p-id="7155" id="x10"></path></svg></span>

                    <span class="col-md-1"><svg t="1576155346874" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19963" width="30" height="30"><path d="M139.679249 958.784696 139.679249 65.215304l612.846826 0 131.793652 133.208884 0 760.360508L139.679249 958.784696zM288.60714 258.498402 249.117754 297.989835l92.143607 92.143607 39.49041-39.49041L288.60714 258.498402zM381.688095 437.536055 232.759181 437.536055l0 55.847959 93.079932 0 0 186.159864-93.079932 74.463945 37.231973 55.847959 74.463945-55.847959 55.847959 55.847959 390.936737 0 0-55.847959L437.536055 754.007823l-55.847959-74.463945L381.688095 437.536055zM760.172219 539.313066l-43.779086-34.6778-57.795311 72.961732-87.555102-69.357648-34.679847 43.777039 218.887242 173.391049 34.675754-43.777039-87.553055-69.355601L760.172219 539.313066zM418.920068 642.311905l37.231973 74.463945 151.718447-52.868091-21.406542-58.82885-93.079932 20.684088L493.384014 493.384014l260.623809 0L754.007823 269.991154 437.536055 269.991154l0 368.183524L418.920068 642.311905zM735.391836 83.83129l0 130.311905 130.311905 0L735.391836 83.83129zM698.159864 363.072109 493.384014 363.072109l0-55.847959 204.77585 0L698.159864 363.072109zM698.159864 456.152041 493.384014 456.152041l0-55.847959 204.77585 0L698.159864 456.152041z" p-id="19964" id="x11"></path></svg>退款</span>
                    <span class="col-md-1"><svg t="1576135071515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2321" width="30" height="30"><path d="M1024.512 498.688c0-1.536 0-3.072-0.512-5.12-1.024-6.144-4.608-11.776-9.216-15.36l-258.048-258.048c-10.24-10.24-26.112-10.24-36.352 0s-10.24 26.112 0 36.352l216.576 216.576h-912.384c-13.312 0-24.576 11.264-24.576 25.6s10.752 25.6 24.576 25.6h912.384l-216.576 216.576c-10.24 10.24-10.24 26.112 0 36.352 5.12 5.12 11.776 7.68 17.92 7.68s13.312-2.56 17.92-7.68L1014.272 519.168c4.608-3.584 8.192-9.216 9.216-15.36 1.024-2.048 1.024-3.584 1.024-5.12z" id="x12" p-id="2322"></path></svg></span>
                    <span class="col-md-1"><svg t="1576135786605" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6173" width="30" height="30"><path d="M736 336zM336 736h-0.01 0.02-0.01zM688 736h0.01-0.01zM736 688z" fill="#666666" p-id="6174"></path><path d="M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.57 448-448S759.42 64 512 64z m220.62 346.18L472.4 670.39a40 40 0 0 1-56.57 0L291.38 545.94a40 40 0 0 1 0-56.57 40 40 0 0 1 56.57 0l96.17 96.17 231.93-231.93a40 40 0 0 1 56.57 0 40 40 0 0 1 0 56.57z" fill="#999999" id="x14" p-id="6175"></path><path d="M732.62 353.61a40 40 0 0 0-56.57 0L444.12 585.54 348 489.37a40 40 0 0 0-56.57 0 40 40 0 0 0 0 56.57l124.4 124.45a40 40 0 0 0 56.57 0l260.22-260.21a40 40 0 0 0 0-56.57z" id="x13" p-id="6176"></path></svg>完成</span>
                    <span class="col-md-1"></span>
                </div>
                <div class="col-md-6"></div>
            </div>

            <ul class="sm-block-grid-1 md-block-grid-3 am-margin am-padding am-text-left" >
                <li>
                    <ul style="list-style: none">
                        <li>单号：{{buyReturn.code}}</li>
                        <li>制单人：{{buyReturn.single}}</li>
                        <li>提交时间：{{buyReturn.createDate}}</li>
                        <li>单据状态：{{buyReturn.orderStaA}}</li>
                    </ul>
                </li>
                <li>
                    <ul style="list-style: none">
                        <li>客户名称：{{User.name}}</li>
                        <li>客户区域：{{User.regionA}}</li>
                        <li>收货仓库: {{buyReturn.houseIdA}}</li>
                    </ul>
                </li>
                <li>
                    <ul style="list-style: none">
                        <li>已付款：￥{{buyReturn.rAmount}}</li>
                        <li>已审核：￥{{num == null ? 0 : num}}</li>
                        <li>应付款：￥{{buyReturn.amount}}</li>
                    </ul>
                </li>
            </ul>
            <div class="am-tabs-bd" style="-ms-content-zooming: none; -ms-user-select: none; -ms-touch-select: none; touch-action: pan-y; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
            <div id="tab1"  class="am-tab-panel am-fade " :class="{'am-active am-in':buyReturn.orderSta==9 || buyReturn.orderSta==1 ||  buyReturn.orderSta==14}" >
                <div class="am-g">
                    <div class="col-md-2">
                        <h5>|退货清单</h5>
                    </div>
                </div>
                <hr>
                <table class="am-table am-table-bd">
                    <thead>
                    <tr class="am-g">
                        <th style="vertical-align: middle;text-align: center" class=" col-md-2 am-text-middle th-box">序号</th>
                        <th style="vertical-align: middle;text-align: center" class="table-date col-md-1 am-text-middle th-box">规格图</th>
                        <th style="vertical-align: middle;text-align: center" class="table-title col-md-2 am-text-middle th-box">商品名称/商品编号</th>
                        <th style="vertical-align: middle;text-align: center" class="table-type col-md-1 am-text-middle th-box">数量</th>
                        <th style="vertical-align: middle;text-align: center" class="table-author col-md-1 am-text-middle th-box">单价</th>
                        <th style="vertical-align: middle;text-align: center" class="table-author col-md-2 am-text-middle th-box">单位</th>
                        <th style="vertical-align: middle;text-align: center" class="table-set col-md-1 am-text-middle th-box">小计</th>
                        <th style="vertical-align: middle;text-align: center" class="table-set col-md-2 am-text-middle th-box">备注</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-show="state1">
                        <td colspan="9" style="text-align: center">
                            <h1 style="color: #0bb59b">没有找到清单~</h1>
                        </td>
                    </tr>
                    <tr class="am-g"  v-for="(val,index) in Wares">
                        <td style="vertical-align: middle;text-align: center" class="td-box">{{index+1}}</td>
                        <td style="vertical-align: middle;text-align: center" class="td-box"><img :src="'http://192.168.2.80:5050/images/tpo/'+val.log" /></td>
                        <td style="vertical-align: middle;text-align: center" class="td-box">{{val.name}}/{{val.id}}</td>
                        <td style="vertical-align: middle;text-align: center" class="td-box"><span  type="number" class="num">{{val.quantity}}</span></td>
                        <td style="vertical-align: middle;text-align: center" class="td-box"  ><span class="td1">{{val.bPrice}}</span></td>
                        <td style="vertical-align: middle;text-align: center" class="td-box">{{val.unit}}</td>
                        <td style="vertical-align: middle;text-align: center" class="td-box"><span class="span1">{{val.quantity==null ? 0 : val.bPrice * val.quantity}}</span></td>
                        <td style="vertical-align: middle;text-align: center" class="td-box"><span>{{val.remark}}</span></td>
                    </tr>
                    </tbody>
                </table>
                <hr>

                <div  class="am-text-right">
                    <button type="button" @click="click1(14)"  v-show="buyReturn.orderSta != 14" class="am-btn am-btn-default">作废退货单</button>
                    <button  @click="tiao()" v-show="buyReturn.orderSta==14 || buyReturn.orderSta==15"  type="button" class="am-btn am-btn-secondary">返回</button>
                    <button type="button"   @click="click1(15,15)"  v-show="buyReturn.orderSta != 14 && buyReturn.orderSta != 15" class="am-btn am-btn-default">强制完成</button>
                    <button type="button"  @click="click1(5)"  v-show="buyReturn.orderSta == 9"  class="am-btn am-btn-secondary">退货单审核</button>
                    <button type="button"  @click="click1(9)" v-show="buyReturn.orderSta == 1" class="am-btn am-btn-secondary">提交</button>
                </div>
            </div>

            <div id="tab2"  class="am-tab-panel am-fade " :class="{'am-active am-in':buyReturn.orderSta==5}">
                <div class="am-g">
                    <div class="col-md-2">
                        <h5>|入库商品清单</h5>
                    </div>
                </div>
                <hr>
                <table class="am-table am-table-bd" style="border: #D8D8D8 2px solid;vertical-align: middle;text-align: center;margin: 0 20px">
                    <tr class="am-g" style="background-color: #D8D8D8">
                        <th style="text-align: center">序号</th>
                        <th style="text-align: center" class="table-date col-md-1 am-text-middle th-box">规格图</th>
                        <th style="text-align: center">商品编号/商品名称</th>
                        <th style="text-align: center">数量</th>
                        <th style="text-align: center">单位</th>
                    </tr>
                    <tr v-show="state2">
                        <td colspan="9" style="text-align: center">
                            <h1 style="color: #0bb59b">没有找到清单~</h1>
                        </td>
                    </tr>
                    <tr class="am-g" v-for="(val,i) in Stock_list">
                        <td style="vertical-align: middle">{{i+1}}</td>
                        <td style="vertical-align: middle"><img  :src="'http://192.168.2.80:5050/images/tpo/'+val.log" /></td>
                        <td style="vertical-align: middle">
                            <p>{{val.waresId}}</p>
                            <p class="am-form-help">{{val.waresName}}</p>
                        </td>
                        <td style="vertical-align: middle">{{val.quantity}}</td>
                        <td style="vertical-align: middle">{{val.unit}}</td>
                    </tr>
                </table>
                <div class="am-text-right">
                    <button type="button"  @click="click1(14)" v-show="buyReturn.orderSta != 14" class="am-btn am-btn-default">作废退货单</button>
                    <button type="button"  @click="updateNextStock_Order(5,5,1)" v-if="isShow(4)" v-show="buyReturn.orderSta == 5 && stockOrder.statusId != 5" class="am-btn am-btn-secondary">入库审核</button>
                    <button type="button" @click="click1(10,10)" v-if="isShow(4)" v-show="buyReturn.orderSta == 5 && stockOrder.statusId == 5" class="am-btn am-btn-secondary">确认入库</button>
                </div>
            </div>


            <div id="tab3"  class="am-tab-panel am-fade " :class="{'am-active am-in':buyReturn.orderSta==10 || buyReturn.orderSta==15}">
                <div class="am-g">
                    <div class="col-md-2">
                        <h5>|退款记录</h5>
                    </div>
                </div>
                <hr>
                <div class="am-text-right">
                    <button type="button" class="am-btn am-btn-primary" @click="addfukuanstart(buyReturn.code)" id="fukuan">添加付款</button>
                </div>
                <table class="am-table am-table-bd" style="border: #D8D8D8 2px solid;vertical-align: middle;text-align: center;margin: 0 20px">

                    <tr style="background-color: #D8D8D8">
                        <th>序号</th>
                        <th>支付类型</th>
                        <th>退款金额</th>
                        <th>退款时间</th>
                        <th>状态</th>
                        <th>备注</th>
                        <th>操作</th>
                    </tr>
                    <tr v-for="(ss,i) in list">
                        <td style="vertical-align: middle" v-cloak>{{i+1}}</td>
                        <td style="vertical-align: middle" v-cloak v-if="ss.type==4">客户退货支出</td>
                        <td style="vertical-align: middle" v-cloak v-if="ss.type==5">采购支出</td>
                        <td style="vertical-align: middle" v-cloak v-if="ss.type==6">其他支出</td>
                        <td style="vertical-align: middle" v-cloak>{{ss.amount}}</td>
                        <td style="vertical-align: middle" v-cloak>{{ss.payDate}}</td>
                        <!--<td style="vertical-align: middle" v-cloak>2019-6-22-20:15:30</td>-->
                        <td style="vertical-align: middle" v-cloak v-if="ss.status==2">待审核</td>
                        <td style="vertical-align: middle;color: #adadad" v-cloak v-if="ss.status==14" >已作废</td>
                        <td style="vertical-align: middle" v-cloak v-if="ss.status==15">已完成</td>
                        <td style="vertical-align: middle" v-cloak>{{ss.ramark}}</td>
                        <td style="vertical-align: middle" v-if="ss.status!=14&&ss.status!=15"><a href="javascript:void(0)"@click="kaishi(ss.code)">查看</a>&nbsp;&nbsp;<a href="javascript:void(0)" @click="zuofei(ss.code,ss.status,ss.amount)" >作废</a></td>
                        <td style="vertical-align: middle" v-else><a href="javascript:void(0)" @click="kaishi(ss.code)">查看</a></td>
                    </tr>
                </table>
                <div class="am-text-right">
                    <button type="button"  @click="click1(14)" v-show="buyReturn.orderSta != 14  " class="am-btn am-btn-default">作废退货单</button>
                    <button  @click="click1(15,15)" v-show="buyReturn.orderSta!=15 && buyReturn.orderSta != 14"  type="button" class="am-btn am-btn-secondary">完成</button>
                    <button  @click="tiao()" v-show="buyReturn.orderSta==15 || buyReturn.orderSta == 14"  type="button" class="am-btn am-btn-secondary">返回</button>
                </div>
            </div>
        </div>
    </div>

    </div>

    <!--新增弹框开始-->

    <div class="am-modal am-modal-confirm" tabindex="-1" id="kiritono17">
        <div class="am-modal-dialog">
            <form method="post" action="">

                <div class="pop-head tc">
                    <div class="pop-tit" style="background-color: rgba(0,0,0,0.3)">新增付款单</div>
                    <hr/>
                </div>


                <div class="am-g">
                    <div class="col-lg-12">
                        <div class="am-g">
                            <div class="col-lg-3">
                                <p>
                                    收款账户：
                                </p>
                                <p>
                                    类别：
                                </p>
                                <p>
                                    付款账户：
                                </p>
                                <p>
                                    付款金额：
                                </p>
                                <p>
                                    付款时间：
                                </p>
                                <p>
                                    备注：
                                </p>

                            </div>
                            <div class="col-lg-9">

                                <p>
                                    {{User.name}}
                                    <select id="shoukuanfang" size="1" style="width: 200px;display: none">
                                        <option :value="User.id" ></option>
                                    </select>
                                </p>
                                <p>
                                    退货支出
                                    <select id="shoukuanleixin" size="1" style="width: 200px;display: none">
                                        <option value="4" >退货支出</option>
                                    </select>
                                </p>
                                <p>
                                    <select id="shoukuanzhuanghu" size="1" style="width: 200px">
                                        <option value="0"></option>
                                        <option value="1">付款账户1</option>
                                        <option value="2">付款账户2</option>
                                    </select>
                                </p>
                                <p>
                                    <!--//金额-->
                                    <input  type="text" id="shoukuanmoney" :placeholder="moneyplaceholder" v-model="money" @blur="inputChange(money)" style="width: 200px">
                                </p>
                                <p>
                                    <!--//时间-->
                                    <input type="date" id="shoukuanshijian" style="width: 200px">
                                </p>
                                <p>
                                    <!--备注-->
                                    <input type="text" id="shoukuanbeizhu" style="width: 200px">
                                </p>
                                <!--//收入凭证-->
                                <input type="file" style="display: none" id="tupian">
                                <ul class="sm-block-grid-2 md-block-grid-4 lg-block-grid-6 am-margin gallery-list" id="soua">
                                    <li id="last-li">
                                        <a href="javascript:upTupian()">
                                            <svg t="1575879268907" class="icon am-img-thumbnail am-img-bdrs"
                                                 viewBox="0 0 1024 1024" version="1.1"
                                                 xmlns="http://www.w3.org/2000/svg" p-id="1707" width="100"
                                                 height="100">
                                                <path d="M915.084916 719.854978 810.23287 719.854978 810.23287 614.985536c0-23.303752-17.479093-40.782845-40.782845-40.782845s-40.782845 17.479093-40.782845 40.782845l0 110.696148L612.144326 725.681684c-23.303752 0-40.782845 17.479093-40.782845 40.782845s17.479093 40.782845 40.782845 40.782845l110.696148 0 0 110.678752c0 23.303752 17.479093 40.782845 40.782845 40.782845s40.782845-17.479093 40.782845-40.782845L804.406165 807.247374 915.084916 807.247374c23.304775 0 40.782845-17.47807 40.782845-40.782845C961.694467 743.160777 938.390715 719.854978 915.084916 719.854978L915.084916 719.854978 915.084916 719.854978zM506.427586 825.749774 506.427586 825.749774 141.658835 825.749774c-13.524015 0-23.675212-10.151197-23.675212-23.710005L117.983623 139.732461c0-13.533224 10.151197-23.684422 23.675212-23.684422l646.381593 0c13.505595 0 23.657816 10.151197 23.657816 23.684422l0 357.988324 0 0 0 0c0 13.524015 10.169617 23.676236 23.711028 23.676236 13.522991 0 23.675212-10.152221 23.675212-23.676236l0 0 0 0L859.084485 116.049063c0-27.073612-23.675212-50.759057-50.758034-50.759057L117.9826 65.290005c-27.065426 0-50.758034 23.685445-50.758034 50.759057L67.224566 825.749774c0 27.048029 23.692608 50.740638 50.758034 50.740638L506.427586 876.490412l0 0c13.522991 0 23.675212-10.169617 23.675212-23.692608C530.101775 835.883575 519.949554 825.749774 506.427586 825.749774L506.427586 825.749774 506.427586 825.749774zM501.447155 708.202591c17.479093-34.95614 58.261938-58.261938 99.044784-58.261938l46.608527 0 0-52.43421c0-46.609551 29.131481-87.392396 69.913303-104.870466l0 0 0 0-58.260915-174.774559L454.838627 580.028373l-58.261938-93.218078L181.028495 708.202591 501.447155 708.202591 501.447155 708.202591 501.447155 708.202591zM396.577712 335.331301c0-34.94693-29.130458-64.078411-64.086597-64.078411s-64.087621 29.131481-64.087621 64.078411c0 34.957163 29.130458 64.087621 64.087621 64.087621S396.577712 370.288464 396.577712 335.331301L396.577712 335.331301 396.577712 335.331301zM396.577712 335.331301"
                                                      p-id="1708"></path>
                                            </svg>
                                        </a>
                                    </li>
                                </ul>


                            </div>
                        </div>
                    </div>
                </div>


                <div class="am-modal-footer">
                    <span class="am-modal-btn" data-am-modal-cancel @click="qingkong()">取消</span>
                    <span class="am-btn" style="padding-left:50% ;padding-right: 50%;color: #0e93d7"  data-am-modal-confirm @click="futianjia()">保存</span>
                </div>
            </form>
        </div>
    </div>


    <!--新增弹框结束-->
    <!--付款单详情弹窗开始-->

    <div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm0" style="width: 800px">
        <div class="am-modal-dialog">
            <!--<div class="am-modal-hd">Amaze UI</div>-->
            <div class="pop-head tc" style="">
                <div class="pop-tit" style="background-color: rgba(0,0,0,0.3);">付款单</div>
                <hr/>
            </div>


            <div class="am-g">
                <div class="col-lg-6">
                    <div class="am-g">
                        <div class="col-lg-6">
                            <table>
                                <tr>
                                    <td>单号</td>
                                </tr>
                                <tr>
                                    <td>收款方</td>
                                </tr>
                                <tr>
                                    <td>款金额</td>
                                </tr>
                                <tr>
                                    <td>付款时间</td>
                                </tr>
                                <tr>
                                    <td>备注</td>
                                </tr>

                            </table>
                        </div>
                        <div class="col-lg-6">
                            <table>
                                <tr>
                                    <td>{{dindanshow.code}}</td>
                                </tr>
                                <tr>
                                    <td>{{dindanshow.name}}</td>
                                </tr>
                                <tr>
                                    <td style="color: #e30001">￥{{dindanshow.amount}}</td>
                                </tr>
                                <tr>
                                    <td>{{dindanshow.payDate}}</td>
                                </tr>
                                <tr>
                                    <td>{{dindanshow.ramark}}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>


                <div class="col-lg-6">
                    <div class="am-g">
                        <div class="col-lg-6">
                            <table>
                                <tr>
                                    <td>状态</td>
                                </tr>
                                <tr>
                                    <td>支出类型</td>
                                </tr>
                                <tr>
                                    <td>付款账户</td>
                                </tr>
                                <tr>
                                    <td>审核时间</td>
                                </tr>
                            </table>
                        </div>
                        <div class="col-lg-6">
                            <table>
                                <tr>
                                    <td v-if="dindanshow.receiptSta==2">待收款</td>
                                    <td v-else-if="dindanshow.receiptSta==14">已作废</td>
                                    <td v-else="dindanshow.receiptSta==15">已完成</td>
                                </tr>
                                <tr>
                                    <td v-if="dindanshow.type==4">客户退货支出</td>
                                    <td v-else-if="dindanshow.type==5">采购支出</td>
                                    <td v-else="dindanshow.type==6">其他支出</td>
                                    <!--客户退货支出(4), 采购支出(5), 其他支出(6)-->
                                </tr>
                                <tr>
                                    <td v-if="dindanshow.account==1">账户1</td>
                                    <td v-if="dindanshow.account==2">账户2</td>
                                </tr>
                                <tr>
                                    <td v-cloak v-if="dindanshow.checkDate==null">单据待审核</td>
                                    <td v-cloak v-else>{{dindanshow.checkDate}}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="am-g">
                    <div class="col-lg-12">
                        <div class="am-g">
                            <div class="col-lg-3">
                                <hr/>
                                <p>收款凭证</p>
                            </div>
                            <div class="col-lg-9">
                                <hr/>
                                <p v-cloak><a :href="'http://192.168.2.80:5050/images/tpo/'+dindanshow.voucher+''"><img width="80px" height="100px" :src="'http://192.168.2.80:5050/images/tpo/'+dindanshow.voucher+''"></a></p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="am-g">
                    <div class="col-lg-12">
                        <div class="am-g">
                            <div class="col-lg-3">
                                <hr/>
                                <p>制单人</p>
                            </div>
                            <div class="col-lg-3">
                                <hr/>
                                <p>{{dindanshow.single}}</p>
                            </div>
                            <div class="col-lg-3">
                                <hr/>
                                <p>审核人</p>
                            </div>
                            <div class="col-lg-3">
                                <hr/>
                                <p v-if="dindanshow.checker!=null">{{dindanshow.checker}}</p>
                                <p v-else>待审核</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="am-modal-footer">
                    <div class="am-g">
                        <div class="col-md-8"></div>
                        <button type="button" @click=" shoukuanzuofei(dindanshow.code,dindanshow.status,dindanshow.amount)" class="am-btn am-btn-secondary col-md-2" v-if="dindanshow.status==2">作废</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--付款单详情弹窗结束-->

</div>



</div>

<footer>
    <hr>
    <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
</footer>


<script src="../../assets/js/zepto.min.js"></script>
<script src="../../assets/js/amazeui.min.js"></script>
<script src="../../assets/js/app.js"></script>
<script src="../../js/vue.js"></script>
<script src="../../js/axios.min.js"></script>
<script src="../../js/qiandel.js"></script>
<script>


    Date.prototype.format = function(fmt) {
        var o = {
            "M+" : this.getMonth()+1,                 //月份
            "d+" : this.getDate(),                    //日
            "h+" : this.getHours(),                   //小时
            "m+" : this.getMinutes(),                 //分
            "s+" : this.getSeconds(),                 //秒
            "q+" : Math.floor((this.getMonth()+3)/3), //季度
            "S"  : this.getMilliseconds()             //毫秒
        };
        if(/(y+)/.test(fmt)) {
            fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
        }
        for(var k in o) {
            if(new RegExp("("+ k +")").test(fmt)){
                fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
            }
        }
        return fmt;
    }

    $(function () {
        $("#x,#tab1").removeClass("am-active") //将初始加载的显示选框去掉
    });

    /////////////////////////////////
    $(function () {
        $("#x,#tab1").removeClass("am-active");//将初始加载的显示选框去掉

        $('#tupian').on('change', function () {

            var filePath = $(this).val();         //获取到input的value，里面是文件的路径
            var fileFormat = filePath.substring(filePath.lastIndexOf(".")).toLowerCase();
            // 检查是否是图片
            if (!fileFormat.match(/.png|.jpg|.jpeg/)) {
                error_prompt_alert('上传错误,文件格式必须为：png/jpg/jpeg');
                return;
            }
            var src = window.URL.createObjectURL(this.files[0]); //转成可以在本地预览的格式
            var li = "<li>\n" +
                "<a href=\"#\">\n" +
                "<img class=\"am-img-thumbnail am-img-bdrs\" src='" + src + "' alt=\"\" />\n" +
                "</a>\n" +
                "</li>";
            $("#last-li").before(li);
            $("#last-li").remove();
        });
    });

    function upTupian() {
        $("#tupian").click();
    };

    var id = sessionStorage["seeBuyReturnId"]

    var vue1 = new Vue({
        el:"#box",
        data:{
            buyReturn:{},//退货单
            User:{},//客户
            Wares:[],//退货单明细商品集合
            Wares3:[],//订单明细商品集合
            area:{"1":"华中","2":"华北","3":"华南","4":"华东","5":"西南","6":"西北","7":"东北"},
            //已作废(14), 待提交(1), 待退货审核(9), 待财务审核(8), 待入库(5), 待付款(10), 已完成(15)
            state:{"1":"待提交","9":"待退货审核","8":"待财务审核","5":"待入库","10":"待付款","15":"已完成","14":"已作废"},
            state1:false, //退货单有无明细
            state2:false, //入库单有无明细
            stockOrder:{},//入库单
            Stock_list:[],//入库单明细
///////////////////////////////////////////////////
            list:[],
            money:'',
            //用于金额的输入框的提示
            moneyplaceholder:'单次最大金额为200000',
            //金额开关
            fumoney:false,
            dindanshow:'',
            num:0, //已审核金额
            adminname:'',
        },
        methods:{
            selectBuyReturn(){ //查询这个退货单
                axios.get("/order/SelectBuyReturn",{params:{id:id}}).then(res=>{
                    vue1.buyReturn = res.data;
                    vue1.buyReturn.houseIdA = vue1.area[vue1.buyReturn.houseId] + "仓库"
                    vue1.changeState();//改变状态字
                    if(vue1.buyReturn.orderSta==9) { //流程到达审核
                        $("#x1,#x2,#x3").attr("fill","#1296db")
                    }else if(vue1.buyReturn.orderSta==5){
                        $("#x1,#x2,#x3,#x4,#x5,#x6").attr("fill","#1296db")
                    }else if(vue1.buyReturn.orderSta==10){
                        $("#x1,#x2,#x3,#x4,#x5,#x6,#x8,#x9,#x10").attr("fill","#1296db")
                    }else if(vue1.buyReturn.orderSta==15){
                        $("#x1,#x2,#x3,#x4,#x5,#x6,#x8,#x9,#x10,#x11,#x12,#x13").attr("fill","#1296db")
                        $("#x14").attr("fill","#2ecc71")
                    }
                    vue1.selectUsers(vue1.buyReturn.userId) //查询客户
                    vue1.selectWares2()//查询退货单所有的商品
                    vue1.selectStockOrder(vue1.buyReturn.code)
                    vue1.select()

                    //kiritono17
                    //获取订单的全部收款单
                    // alert()
                    axios.get("/finance/codeselectallfukuandan",{params:{code:this.buyReturn.code}}).then(res=>{
                        this.list=res.data.obj;
                    }).catch(err=>{
                        alert("获取订单的全部收款单");
                    })
                }).catch(err=>{
                    alert("查询退货单失败")
                })
            },
            changeState(){ //改变状态字
                vue1.buyReturn.orderStaA = vue1.state[vue1.buyReturn.orderSta]
            },
            selectUsers(id){ //查询客户
                axios.get("/order/SelectUser",{params:{id:id}}).then(res=>{
                    vue1.User = res.data;
                    vue1.User.regionA = vue1.area[vue1.User.region] + "区"
                }).catch(err=>{
                    alert("查询客户失败")
                })
            },
            selectWares2(){ //查询退货单所有的商品
                axios.get("/order/SelectDetailList2", {params: {orderId: vue1.buyReturn.code, type: 2}}).then(res => {
                    if (res.data != null && res.data != '') {
                        $.each(res.data, function (i, val) {
                            val.remark = val.brand
                            val.total = val.quantity * val.bPrice
                        })
                        vue1.Wares = res.data
                    }else {
                        vue1.state1 = true
                    }
                })
            },
            selectStockOrder(code){//查询退货单关联的入库单
                axios.post("/wares/getStock_order",{relCode:code,pageSize:1,pageNum:1}).then(res=>{
                    if(res.data.obj.list != null && res.data.obj.list != '') {
                        vue1.stockOrder = res.data.obj.list[0]
                        vue1.getStock_list(vue1.stockOrder.code); //查询入库清单明细
                    }
                })
            },
            getStock_list(code){//查询入库清单明细
                axios.post("/wares/getStock_list",{stockCode:code}).then(res=>{
                    if (res.data != null && res.data != '') {
                        vue1.Stock_list = res.data.obj
                    }else {
                        vue1.state2 = true
                    }
                })
            },
            click1(orderSta,receSta) { //退货单改状态
                if(orderSta == 14 && vue1.buyReturn.orderSta != 10 && vue1.buyReturn.orderSta != 15){  //作废订货单的时候,订货单未入库,那订单清单已退商品数就回退
                  //  vue1.Wares //退货单清单商品明细
                    //根据订单号联合查询商品到 ShowWares 清单对象
                    axios.get("/order/SelectDetailList",{params:{orderId:vue1.buyReturn.orderCode,type:1}}).then(res=>{
                        if(res.data != null && res.data != '') {
                            vue1.Wares3 = res.data
                            var aa = false
                            var list = []
                            $.each(vue1.Wares3,function (i,val1) {
                                var detail_list = {}
                                $.each(vue1.Wares,function (i,val2) {
                                    if(val1.id == val2.id){
                                        //(需要还原的已退货数=现在已退货数-作废退货数)
                                        detail_list.returnNum = val1.ksum - val2.quantity //退货数
                                        detail_list.id = val1.sum //订单清单id
                                        list.push(detail_list)
                                    }
                                })
                                if(vue1.Wares3.length == (parseInt(i)+parseInt(1))){
                                    aa = true
                                }
                            })
                            if(aa) {
                                alert("aa")
                                axios.post("/order/UpdateDetailList2",list).then(res=>{
                                    if(res.data == -1){
                                        alert("还原订货明细退货数失败")
                                    }else {
                                        console.log("还原成功") //然后改订货单状态
                                    }
                                })
                            }
                        }
                    })
                }
                axios.get("/order/UpdateBuyReturnState", {params: {orderSta: orderSta,receSta:receSta, id: vue1.buyReturn.id}}).then(res => {
                    if (res.data < 0) {
                        alert("退货单状态修改失败")
                    } else {
                        if (orderSta == 10) {
                            vue1.updateNextStock_Order(15, 5);
                        }
                        if(orderSta == 5){
                            vue1.updateNextStock_Order(2, 9);
                        }
                        if(orderSta == 14){
                            vue1.updateNextStock_Order(14, 1);
                        }
                        vue1.changeState()
                    }
                    // fill="#1296db"
                    vue1.selectBuyReturn()
                }).catch(err => {
                    alert("订单状态修改请求失败")
                })
            },
            updateNextStock_Order(status,orderSta,pd){ //修改入库单状态
                var verifyDate = null
                var verifier = null
                if(pd == 1){
                    verifyDate = new Date().format("yyyy-MM-dd hh:mm:ss")
                    verifier = getCookie()
                }
                axios.post("/wares/nextStock_order",{bStatus:this.stockOrder.statusId,status:status,code:this.stockOrder.code,type:11,verifier:verifier,verifyDate:verifyDate}).then(res=>{
                    if(res.data<=0){
                        axios.get("/order/UpdateBuyReturnState",{params:{orderSta:orderSta,id:vue1.buyReturn.id}}).then(res=>{
                            console.log("订单状态回退")
                        })
                        alert("出库单状态修改失败")
                    }
                    vue1.selectStockOrder(vue1.buyReturn.code);
                })
            },
            tiao(){
                window.location.href = "退货单.html"
            },

            ////////////////////////////////////////////////
            //kiritono17start
            //添加付款单的弹窗
            addfukuanstart(code){
                // alert(code);
                $('#kiritono17').modal({});
            },
            futianjia(){
                // var fushoukuanleixin=false;
                var fushoukuanzhuanghu=false;
                var fushoukuanshijian=false;
                var futupian=false;

                if($("#shoukuanzhuanghu").val()!=0&&$("#shoukuanzhuanghu").val()!=''){
                    fushoukuanzhuanghu=true;
                    $("#shoukuanzhuanghu")[0].style.border="1px solid #575757";
                }else{
                    $("#shoukuanzhuanghu")[0].style.border="1.5px solid red";
                }

                if($("#shoukuanshijian").val()!=0&&$("#shoukuanshijian").val()!=''){
                    fushoukuanshijian=true;
                    $("#shoukuanshijian")[0].style.border="1px solid #575757";
                }else{
                    $("#shoukuanshijian")[0].style.border="1.5px solid red";
                }

                if($("#tupian").val()!=0&&$("#tupian").val()!=''){
                    futupian=true;
                    $("#tupian")[0].style.border="1px solid #575757";
                }else{
                    $("#tupian")[0].style.border="1.5px solid red";
                }
                this.inputChange(this.money);
                if(fushoukuanzhuanghu&&fushoukuanshijian&&futupian&&this.fumoney){
                    this.add();
                    this.fumoney=false;
                    fushoukuanzhuanghu=false;
                    fushoukuanshijian=false;
                }else{
                    fushoukuanzhuanghu=false;
                    fushoukuanshijian=false;
                    alert("还有输入框未输入！或未加载图片！请输入/加载后在提交！");
                }

            },
            //执行新增操作
            add(){
                var json={
                    payee:this.User.id,
                    relcode:this.buyReturn.code,
                    amount:$("#shoukuanmoney").val(),//金额
                    type:$("#shoukuanleixin").val(),
                    account:$("#shoukuanzhuanghu").val(),
                    payDate:$("#shoukuanshijian").val(),
                    status:"2",
                    //制单人
                    single:"在redis中获取制单人",
                    //备注
                    ramark:$("#shoukuanbeizhu").val(),
                };
                var data=new FormData();
                data.append('json',JSON.stringify(json));
                data.append("file",$("#tupian")[0].files[0]);
                axios.post("/finance/addPay_order",data,{
                    'Content-Type':'multipart/form-data'
                }).then(response=>{
                    var obj=response.data.obj;
                    if (obj==1){
                        var xx = $("#shoukuanmoney").val()
                        // $("#fukuanfang").val("");
                        $("#shoukuanmoney").val('');//金额
                        // $("#shoukuanleixin").val('');
                        $("#shoukuanzhuanghu").val('');
                        $("#shoukuanshijian").val('');
                        $("#shoukuanbeizhu").val('');
                        $("#tupian").val('');
                        $("#soua").html(" <li id=\"last-li\">\n" +
                            "                                        <a href=\"javascript:upTupian()\" >\n" +
                            "                                            <svg t=\"1575879268907\" class=\"icon am-img-thumbnail am-img-bdrs\"\n" +
                            "                                                 viewBox=\"0 0 1024 1024\" version=\"1.1\"\n" +
                            "                                                 xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1707\" width=\"100\"\n" +
                            "                                                 height=\"100\">\n" +
                            "                                                <path d=\"M915.084916 719.854978 810.23287 719.854978 810.23287 614.985536c0-23.303752-17.479093-40.782845-40.782845-40.782845s-40.782845 17.479093-40.782845 40.782845l0 110.696148L612.144326 725.681684c-23.303752 0-40.782845 17.479093-40.782845 40.782845s17.479093 40.782845 40.782845 40.782845l110.696148 0 0 110.678752c0 23.303752 17.479093 40.782845 40.782845 40.782845s40.782845-17.479093 40.782845-40.782845L804.406165 807.247374 915.084916 807.247374c23.304775 0 40.782845-17.47807 40.782845-40.782845C961.694467 743.160777 938.390715 719.854978 915.084916 719.854978L915.084916 719.854978 915.084916 719.854978zM506.427586 825.749774 506.427586 825.749774 141.658835 825.749774c-13.524015 0-23.675212-10.151197-23.675212-23.710005L117.983623 139.732461c0-13.533224 10.151197-23.684422 23.675212-23.684422l646.381593 0c13.505595 0 23.657816 10.151197 23.657816 23.684422l0 357.988324 0 0 0 0c0 13.524015 10.169617 23.676236 23.711028 23.676236 13.522991 0 23.675212-10.152221 23.675212-23.676236l0 0 0 0L859.084485 116.049063c0-27.073612-23.675212-50.759057-50.758034-50.759057L117.9826 65.290005c-27.065426 0-50.758034 23.685445-50.758034 50.759057L67.224566 825.749774c0 27.048029 23.692608 50.740638 50.758034 50.740638L506.427586 876.490412l0 0c13.522991 0 23.675212-10.169617 23.675212-23.692608C530.101775 835.883575 519.949554 825.749774 506.427586 825.749774L506.427586 825.749774 506.427586 825.749774zM501.447155 708.202591c17.479093-34.95614 58.261938-58.261938 99.044784-58.261938l46.608527 0 0-52.43421c0-46.609551 29.131481-87.392396 69.913303-104.870466l0 0 0 0-58.260915-174.774559L454.838627 580.028373l-58.261938-93.218078L181.028495 708.202591 501.447155 708.202591 501.447155 708.202591 501.447155 708.202591zM396.577712 335.331301c0-34.94693-29.130458-64.078411-64.086597-64.078411s-64.087621 29.131481-64.087621 64.078411c0 34.957163 29.130458 64.087621 64.087621 64.087621S396.577712 370.288464 396.577712 335.331301L396.577712 335.331301 396.577712 335.331301zM396.577712 335.331301\"\n" +
                            "                                                      p-id=\"1708\"></path>\n" +
                            "                                            </svg>\n" +
                            "                                        </a>\n" +
                            "                                    </li>");
                        $('#kiritono17').modal({});
                        vue1.addRAmount(xx,1)
                    } else {
                        alert("添加失败！");
                    }
                })
            },
            //清空
            qingkong(){
                // $("#fukuanfang").val("");
                $("#shoukuanmoney").val('');//金额
                // $("#shoukuanleixin").val('');
                $("#shoukuanzhuanghu").val('');
                $("#shoukuanshijian").val('');
                $("#shoukuanbeizhu").val('');
                $("#tupian").val('');
                $("#soua").html(" <li id=\"last-li\">\n" +
                    "                                        <a href=\"javascript:upTupian()\" >\n" +
                    "                                            <svg t=\"1575879268907\" class=\"icon am-img-thumbnail am-img-bdrs\"\n" +
                    "                                                 viewBox=\"0 0 1024 1024\" version=\"1.1\"\n" +
                    "                                                 xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1707\" width=\"100\"\n" +
                    "                                                 height=\"100\">\n" +
                    "                                                <path d=\"M915.084916 719.854978 810.23287 719.854978 810.23287 614.985536c0-23.303752-17.479093-40.782845-40.782845-40.782845s-40.782845 17.479093-40.782845 40.782845l0 110.696148L612.144326 725.681684c-23.303752 0-40.782845 17.479093-40.782845 40.782845s17.479093 40.782845 40.782845 40.782845l110.696148 0 0 110.678752c0 23.303752 17.479093 40.782845 40.782845 40.782845s40.782845-17.479093 40.782845-40.782845L804.406165 807.247374 915.084916 807.247374c23.304775 0 40.782845-17.47807 40.782845-40.782845C961.694467 743.160777 938.390715 719.854978 915.084916 719.854978L915.084916 719.854978 915.084916 719.854978zM506.427586 825.749774 506.427586 825.749774 141.658835 825.749774c-13.524015 0-23.675212-10.151197-23.675212-23.710005L117.983623 139.732461c0-13.533224 10.151197-23.684422 23.675212-23.684422l646.381593 0c13.505595 0 23.657816 10.151197 23.657816 23.684422l0 357.988324 0 0 0 0c0 13.524015 10.169617 23.676236 23.711028 23.676236 13.522991 0 23.675212-10.152221 23.675212-23.676236l0 0 0 0L859.084485 116.049063c0-27.073612-23.675212-50.759057-50.758034-50.759057L117.9826 65.290005c-27.065426 0-50.758034 23.685445-50.758034 50.759057L67.224566 825.749774c0 27.048029 23.692608 50.740638 50.758034 50.740638L506.427586 876.490412l0 0c13.522991 0 23.675212-10.169617 23.675212-23.692608C530.101775 835.883575 519.949554 825.749774 506.427586 825.749774L506.427586 825.749774 506.427586 825.749774zM501.447155 708.202591c17.479093-34.95614 58.261938-58.261938 99.044784-58.261938l46.608527 0 0-52.43421c0-46.609551 29.131481-87.392396 69.913303-104.870466l0 0 0 0-58.260915-174.774559L454.838627 580.028373l-58.261938-93.218078L181.028495 708.202591 501.447155 708.202591 501.447155 708.202591 501.447155 708.202591zM396.577712 335.331301c0-34.94693-29.130458-64.078411-64.086597-64.078411s-64.087621 29.131481-64.087621 64.078411c0 34.957163 29.130458 64.087621 64.087621 64.087621S396.577712 370.288464 396.577712 335.331301L396.577712 335.331301 396.577712 335.331301zM396.577712 335.331301\"\n" +
                    "                                                      p-id=\"1708\"></path>\n" +
                    "                                            </svg>\n" +
                    "                                        </a>\n" +
                    "                                    </li>");
                $('#kiritono17').modal({});
            },
            //金额输入验证
            inputChange(e){
                var obj = e;
                //如果用户第一位输入的是小数点，则重置输入框内容
                if (obj!= '' && obj.substring(0, 1) == '.') {
                    this.money= '';
                    this.moneyplaceholder='请输入正确格式如0.1';
                    $("#shoukuanmoney")[0].style.border="1.5px solid red";
                    this.fumoney=false;
                    return;
                }
                if(obj==0){
                    this.money='';
                    this.moneyplaceholder='金额必须大于0';
                    $("#shoukuanmoney")[0].style.border="1.5px solid red";
                    this.fumoney=false;
                    return;
                }
                $("#shoukuanmoney")[0].style.border="1px solid #575757";
                obj = obj.replace(/^0*(0\.|[1-9])/, '$1');//粘贴不生效
                obj = obj.replace(/[^\d.]/g, "");  //清除“数字”和“.”以外的字符
                obj = obj.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
                obj = obj.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
                obj = obj.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3');//只能输入两个小数
                if (obj.indexOf(".") < 0 && obj != "") {//以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
                    if (obj.substring(0, 1) == '0' && obj.length == 2) {
                        obj = obj.substring(1, obj.length);
                    }
                }
                if(parseFloat(obj)>200000){
                    obj = 200000;
                }
                this.fumoney=true;
                this.money=obj;
            },
            //付款单查寻
            kaishi(code){
                //用ajax查询其对应的订单内容
                axios.get("/finance/selectReceipt_order",{params:{code:code}}).then(res=>{
                    this.dindanshow=res.data.obj;
                }).catch(err=>{
                    alert("失败！")
                });

                $('#my-confirm18').modal({ });
            },
            //关联订单
            kaishi(code){
                //用ajax查询其对应的订单内容
                axios.get("/finance/selectpay_order",{params:{code:code}}).then(res=>{
                    this.dindanshow=res.data.obj;
                    // alert(this.dindanshow.code)
                }).catch(err=>{
                    alert("失败！")
                });
                $("#danhao").html(code);
                $('#my-confirm0').modal({
                    relatedElement: this
                });
            },
            zuofei(code,status,amount){
                //弹出框是否确定作废该订单
                if (window.confirm("是否作废该收款单？")){
                    // alert("作废成功!")
                    axios.post("/finance/fukuanzuofei",{code:code,"status":status}).then(res=>{
                        var ss=parseInt(res.data.obj);
                        if(ss==1){
                            alert("作废成功!");
                            vue1.addRAmount(amount,0)
                            // $("#kiritono17").hide();
                        }else{
                            alert("作废失败!")
                        }
                    }).catch(err=>{
                        alert("作废失败")
                    });
                }
            },
            //作废操作
            shoukuanzuofei(code,status,amount){
                //弹出框是否确定作废该订单
                if (window.confirm("是否作废该收款单？")){
                    // alert("作废成功!")
                    axios.post("/finance/fukuanzuofei",{code:code,"status":status}).then(res=>{
                        var ss=parseInt(res.data.obj);
                        if(ss==1){
                            $("#my-confirm0").modal({});
                            vue1.addRAmount(amount,0)
                        }else{
                            alert("作废失败!")
                        }
                    }).catch(err=>{
                        alert("作废失败")
                    });
                }
            },

            //kiritono17stop
            addRAmount(rAmount,pd){ ///对退货单付款改变
                var buyReturn = {}
                if(pd == 1){
                    buyReturn.rAmount = parseFloat(rAmount) + parseFloat(vue1.buyReturn.rAmount)
                }else{
                    buyReturn.rAmount = parseFloat(vue1.buyReturn.rAmount) - parseFloat(rAmount)
                }
                buyReturn.id = vue1.buyReturn.id
                axios.post("/order/UpdateBuyReturn",buyReturn).then(res=>{
                    if(res.data<=0){
                        alert("退货单付款改变失败!")
                    }
                    vue1.selectBuyReturn();
                })
            },
            select(){//查询已审核退货单金额
                axios.get("/finance/selectallokfukuandan",{params:{code:vue1.buyReturn.code}}).then(res=>{
                        vue1.num = res.data.obj
                })
            },
            isShow(v){
                for (var i=2;i<quan.length;i++){
                    if (v==quan[i])return true
                }
                return false
            },
        },
        mounted(){
            this.selectBuyReturn();
            this.adminname=getCookie();
        }
    })


</script>
</body>
</html>
